#pragma once
#import "msxml3.dll"
#include <map>
#include <string>
#include <vector>

/**
@brief Gestion d'un webservice
*/
class WebService
{
public:
	WebService(void);
	~WebService(void);

	BSTR request( const std::wstring& url, const std::map<std::wstring,std::wstring>& req );
	BSTR getFirstID( const BSTR bstrFile );
	BSTR WebService::getUrlLargeImage( const BSTR bstrFile );

};

namespace XML
{
void getChilds( std::vector<MSXML2::IXMLDOMNodePtr>& childs, MSXML2::IXMLDOMNodePtr& pNode, const std::wstring& str );
MSXML2::IXMLDOMNodePtr getUniqueChild( MSXML2::IXMLDOMNodePtr& pNode, const std::wstring& str );
}